<?php
/**
 * Created by PhpStorm.
 * User: Weizehua
 * Date: 8/5/2016
 * Time: 22:37
 */

// constants
$code_file = "code.php";

// logic
header("Content-Type:text/plain; charset=UTF-8");

require ('generators/get_code.php');

// read
$code = get_code($code_file);
$code = preg_replace(generate_assign_patten('remote_flag_handler_path'), stringify_code(generate_server_url("handler/flag_handler.php")), $code);
echo $code;
